//
//  LLPUserDaults.h
//  LLP
//
//  Created by Shiyu pan on 12-10-12.
//  Copyright (c) 2012年 Porcellio. All rights reserved.
//

#import <Foundation/Foundation.h>

/**简单存储类
 这里提供针对简单数据的存取方法
 存取的时候，可以加入简单的数据封装和验证
 
 */

@interface  LLPUserDafaults

+ (void)setValue:(id)value forKey:(NSString *)key;
+ (id)valueForKey:(NSString *)key;
+ (void)clearData;

@end


@interface LLPUserDafaults (userInfo)//用户信息

+ (void)saveUserName:(NSString*)tmpName;
+ (NSString*)userName;

@end

@interface LLPUserDafaults (imageList)//

+ (void)saveImageDataDictionary:(NSDictionary*)tmpImgDataDictionary;
+ (NSDictionary*)imgDataDictionary;
+ (void)clearImageDataDictory;

@end


@interface LLPUserDafaults (setting)//用户的设置信息
//比如微博  需要存储微博accesskey和token、过期时间  这块不便写在这里，待续

+ (BOOL)isFirstVisit;
+ (void)invalidIsFirstVisit;

@end